HTMLify
style.css
Views: 12 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | * { padding: 0; margin: 0; box-sizing: border-box; } .container { height: 100vh; display: flex; justify-content: center; align-items: center; font-family: sans-serif; background: crimson; } .btn { border: none; padding: 1rem 4rem; background: rgba(17, 17, 137, 0.824); color: #fff; font-size: 22px; text-transform: uppercase; position: relative; cursor: pointer; } .btn:before { content: ""; position: absolute; width: 24px; height: 24px; top: -10px; left: -10px; /* background: teal; */ border-top: 4px solid darkblue; border-left: 4px solid darkblue; transition: all 0.25s; } .btn:hover:before, .btn:hover:after { height: 100%; width: 100%; } .btn:after { content: ""; position: absolute; width: 24px; height: 24px; bottom: -10px; right: -10px; border-bottom: 4px solid darkblue; border-right: 4px solid darkblue; transition: all 0.25s; } |